<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改密码</title>
	<include file="Public:header" />
	<style type="text/css">
		input,textarea{width:180px;border:1px solid #ccc;padding:2px;}
	</style>
	<script type="text/javascript">
		function chkfrm()
		{
			if($('#password').val()=='')
			{
				$.messager.show({title:'提示',msg:'请输入原始密码',timeout:5000,showType:'slide'});
				return false;
			}
			if($('#newpass1').val()=='' || $('#newpass1').val().length<5 || $('#newpass1').val().length>18)
			{
				$.messager.show({title:'提示',msg:'请正确输入新密码，长度在5~18位之间',timeout:5000,showType:'slide'});
				return false;
			}
			if($('#newpass2').val()=='' || $('#newpass2').val().length<5 || $('#newpass2').val().length>18)
			{
				$.messager.show({title:'提示',msg:'请确认您的新密码，长度在5~18位之间',timeout:5000,showType:'slide'});
				return false;
			}
			$('#form1').submit();
		}
	</script>
</head>
<body class="">
	<div class="demo-info space-out-10px">
		<div class="demo-tip icon-tip"></div>
		<div>建议每个月变更一次密码，而且用较复杂的字符组合作为您的密码，长度为5~18位</div>
	</div>
	<form id="form1" method="post" action="{:U('Index/edit_password_save')}">
		<table class="space-out-10px">
		<tr>
		<td>旧密码：</td><td><input type="password" id="password" name="password" class="easyui-validatebox" required="true" validType="length[1,18]" /></td>		
		</tr>
		<tr>
		<td>新密码：</td><td><input type="password" id="newpass1" name="newpass1" class="easyui-validatebox" required="true" validType="length[5,18]" /></td>
		</tr>
		<tr>
		<td>确认新密码：</td><td><input type="password" id="newpass2" name="newpass2" class="easyui-validatebox" required="true" validType="length[5,18]" /></td>
		</tr>
		<tr>
		<td>&nbsp;</td><td><a href="javascript:;" class="easyui-linkbutton" iconCls="icon-save" onclick="chkfrm()">保存</a></td>
		</tr>
		</table>
	</form>
</body>
</html>
